﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using IPSWeb.Logic;

namespace IPSWeb
{
    public partial class StartupsScriptEditor : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (PSConfigurationManager.IsScriptsFolderExists())
                TextBoxEditor1.FilePath = PSConfigurationManager.GetStartupScriptPath();
            else
            {
                TextBoxEditor1.Visible = false;
                lblNoWritePremission.Visible = true;
            }

        }
    }
}
